package cn.walls1717.wallsmall.common.constant;

import lombok.Getter;

/**
 * @author walls1717
 * @since 2022/10/30 10:42
 **/
public class WareConstant {

    @Getter
    public enum PurchaseStatusEnum {
        /** 新建状态 */
        CREATED(0, "新建"),
        /** 已分配状态 */
        ASSIGNED(1, "已分配"),
        /** 已领取状态 */
        RECEIVE(2, "已领取"),
        /** purchaseDetail正在采购 */
        BUYING(2, "正在采购"),
        /** 已完成状态 */
        FINISH(3, "已完成"),
        /** 有异常状态 */
        ERROR(4, "有异常");

        private final Integer code;
        private final String msg;

        PurchaseStatusEnum(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }
    }
}
